using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class MassSendResponse : GeneratedMessageLite<MassSendResponse, MassSendResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<MassSendResponse, MassSendResponse.Builder>
		{
			private bool resultIsReadOnly;
			private MassSendResponse result;
			protected override MassSendResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override MassSendResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override MassSendResponse DefaultInstanceForType
			{
				get
				{
					return MassSendResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public uint DataStartPos
			{
				get
				{
					return this.result.DataStartPos;
				}
				set
				{
					this.SetDataStartPos(value);
				}
			}
			public uint ThumbStartPos
			{
				get
				{
					return this.result.ThumbStartPos;
				}
				set
				{
					this.SetThumbStartPos(value);
				}
			}
			public uint MaxSupport
			{
				get
				{
					return this.result.MaxSupport;
				}
				set
				{
					this.SetMaxSupport(value);
				}
			}
			public Builder()
			{
				this.result = MassSendResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(MassSendResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private MassSendResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					MassSendResponse other = this.result;
					this.result = new MassSendResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override MassSendResponse.Builder Clear()
			{
				this.result = MassSendResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override MassSendResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new MassSendResponse.Builder(this.result);
				}
				return new MassSendResponse.Builder().MergeFrom(this.result);
			}
			public override MassSendResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override MassSendResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is MassSendResponse)
				{
					return this.MergeFrom((MassSendResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override MassSendResponse.Builder MergeFrom(MassSendResponse other)
			{
				return this;
			}
			public override MassSendResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override MassSendResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(MassSendResponse._massSendResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = MassSendResponse._massSendResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasDataStartPos = input.ReadUInt32(ref this.result.dataStartPos_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasThumbStartPos = input.ReadUInt32(ref this.result.thumbStartPos_);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasMaxSupport = input.ReadUInt32(ref this.result.maxSupport_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public MassSendResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public MassSendResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public MassSendResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public MassSendResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public MassSendResponse.Builder SetDataStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasDataStartPos = true;
				this.result.dataStartPos_ = value;
				return this;
			}
			public MassSendResponse.Builder ClearDataStartPos()
			{
				this.PrepareBuilder();
				this.result.hasDataStartPos = false;
				this.result.dataStartPos_ = 0u;
				return this;
			}
			public MassSendResponse.Builder SetThumbStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasThumbStartPos = true;
				this.result.thumbStartPos_ = value;
				return this;
			}
			public MassSendResponse.Builder ClearThumbStartPos()
			{
				this.PrepareBuilder();
				this.result.hasThumbStartPos = false;
				this.result.thumbStartPos_ = 0u;
				return this;
			}
			public MassSendResponse.Builder SetMaxSupport(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMaxSupport = true;
				this.result.maxSupport_ = value;
				return this;
			}
			public MassSendResponse.Builder ClearMaxSupport()
			{
				this.PrepareBuilder();
				this.result.hasMaxSupport = false;
				this.result.maxSupport_ = 0u;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int DataStartPosFieldNumber = 2;
		public const int ThumbStartPosFieldNumber = 3;
		public const int MaxSupportFieldNumber = 4;
		private static readonly MassSendResponse defaultInstance;
		private static readonly string[] _massSendResponseFieldNames;
		private static readonly uint[] _massSendResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasDataStartPos;
		private uint dataStartPos_;
		private bool hasThumbStartPos;
		private uint thumbStartPos_;
		private bool hasMaxSupport;
		private uint maxSupport_;
		private int memoizedSerializedSize = -1;
		public static MassSendResponse DefaultInstance
		{
			get
			{
				return MassSendResponse.defaultInstance;
			}
		}
		public override MassSendResponse DefaultInstanceForType
		{
			get
			{
				return MassSendResponse.DefaultInstance;
			}
		}
		protected override MassSendResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public uint DataStartPos
		{
			get
			{
				return this.dataStartPos_;
			}
		}
		public uint ThumbStartPos
		{
			get
			{
				return this.thumbStartPos_;
			}
		}
		public uint MaxSupport
		{
			get
			{
				return this.maxSupport_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasDataStartPos && this.hasThumbStartPos && this.hasMaxSupport && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasDataStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.DataStartPos);
				}
				if (this.hasThumbStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.ThumbStartPos);
				}
				if (this.hasMaxSupport)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.MaxSupport);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private MassSendResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] massSendResponseFieldNames = MassSendResponse._massSendResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, massSendResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasDataStartPos)
			{
				output.WriteUInt32(2, massSendResponseFieldNames[1], this.DataStartPos);
			}
			if (this.hasThumbStartPos)
			{
				output.WriteUInt32(3, massSendResponseFieldNames[3], this.ThumbStartPos);
			}
			if (this.hasMaxSupport)
			{
				output.WriteUInt32(4, massSendResponseFieldNames[2], this.MaxSupport);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasDataStartPos)
			{
				num ^= this.dataStartPos_.GetHashCode();
			}
			if (this.hasThumbStartPos)
			{
				num ^= this.thumbStartPos_.GetHashCode();
			}
			if (this.hasMaxSupport)
			{
				num ^= this.maxSupport_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			MassSendResponse massSendResponse = value as MassSendResponse;
			return massSendResponse != null && (this.hasBaseResponse == massSendResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(massSendResponse.baseResponse_))) && (this.hasDataStartPos == massSendResponse.hasDataStartPos && (!this.hasDataStartPos || this.dataStartPos_.Equals(massSendResponse.dataStartPos_))) && (this.hasThumbStartPos == massSendResponse.hasThumbStartPos && (!this.hasThumbStartPos || this.thumbStartPos_.Equals(massSendResponse.thumbStartPos_))) && (this.hasMaxSupport == massSendResponse.hasMaxSupport && (!this.hasMaxSupport || this.maxSupport_.Equals(massSendResponse.maxSupport_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<MassSendResponse, MassSendResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<MassSendResponse, MassSendResponse.Builder>.PrintField("DataStartPos", this.hasDataStartPos, this.dataStartPos_, writer);
			GeneratedMessageLite<MassSendResponse, MassSendResponse.Builder>.PrintField("ThumbStartPos", this.hasThumbStartPos, this.thumbStartPos_, writer);
			GeneratedMessageLite<MassSendResponse, MassSendResponse.Builder>.PrintField("MaxSupport", this.hasMaxSupport, this.maxSupport_, writer);
		}
		public static MassSendResponse ParseFrom(byte[] data)
		{
			return MassSendResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private MassSendResponse MakeReadOnly()
		{
			return this;
		}
		public static MassSendResponse.Builder CreateBuilder()
		{
			return new MassSendResponse.Builder();
		}
		public override MassSendResponse.Builder ToBuilder()
		{
			return MassSendResponse.CreateBuilder(this);
		}
		public override MassSendResponse.Builder CreateBuilderForType()
		{
			return new MassSendResponse.Builder();
		}
		public static MassSendResponse.Builder CreateBuilder(MassSendResponse prototype)
		{
			return new MassSendResponse.Builder(prototype);
		}
		static MassSendResponse()
		{
			MassSendResponse.defaultInstance = new MassSendResponse().MakeReadOnly();
			MassSendResponse._massSendResponseFieldNames = new string[]
			{
				"BaseResponse",
				"DataStartPos",
				"MaxSupport",
				"ThumbStartPos"
			};
			MassSendResponse._massSendResponseFieldTags = new uint[]
			{
				10u,
				16u,
				32u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.MassSendResponse.Descriptor, null);
		}
	}
}
